package com.etc.dao;

import com.etc.entity.Friend;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface FriendMapper {
	int deleteByPrimaryKey(Integer friendId);

	int insert(Friend record);

	int insertSelective(Friend record);

	Friend selectByPrimaryKey(Integer friendId);

	int updateByPrimaryKeySelective(Friend record);

	int updateByPrimaryKey(Friend record);
	
	//查询好友列表
	List<Friend> selectByPage(int start, int limit, String content, int userId);

	int selectCountByUserid(String content, int userId);
}